package problems;

import lib.MathLib;

public class Euler055 extends AbstractEuler {

	@Override
	public Number calculate() {
		int lychrels = 0;
		for (int i = 1; i < 10000; i++) {
			if (MathLib.isLychrel(i, 50)) lychrels++;
		}
		return lychrels;
	}

	@Override
	protected Number getCorrectAnswer() {
		return 249;
	}

}
